package sh.wn36.vehiclemanage.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import sh.wn36.vehiclemanage.entity.InspectionRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import sh.wn36.vehiclemanage.entity.entity_cjl.reminder.Reminder_InspectionRecord;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Service
public interface InspectionRecordMapper extends BaseMapper<InspectionRecord> {

    @Select("SELECT c.car_no, i.expire_date FROM inspection_record i LEFT JOIN car c ON i.car_id = c.id")
    List<Reminder_InspectionRecord> listReminder_InspectionRecord();
}
